import request from "@/utils/request";


export function getMemberService(params) {
  return request({
    url: 'member/list',
    method: 'get',
    params
  })
}

export function addMemberService(params = {}){
  return request({
    url: '/member/add',
    method: 'post',
    data: params
  })
}
export function getMemberDetailService(memberId){
  return request({
    url: '/member/getdetailbyid',
    method: 'get',
    params: { memberId }
  })
}
export function updateMemBerService(params = {}){
  return request({
    url: '/member/update',
    method: 'post',
    data: params
  })
}
export function deleteMemBerService(memberId) {
  return request({
    url: '/member/delete',
    method: 'get',
    params: { memberId }
  })
}
